package com.sjb.sixteen_journey_backend.service;

import com.sjb.sixteen_journey_backend.common.R;
import com.sjb.sixteen_journey_backend.entity.ShareThing;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 我的爆料表 服务类
 * </p>
 *
 * @author jcz
 * @since 2024-07-14
 */
public interface IShareThingService extends IService<ShareThing> {

    R addShareThing(ShareThing shareThing);
//    R addShareThing(ShareThing shareThing, ArrayList<MultipartFile> images);

    R<List<ShareThing>> getAllShareThing();

    R<ShareThing> getShareThingById(Integer shareThingId, Boolean f);

    R<List<ShareThing>> getAllMyTimeByUserId();

    R deleteShareThingById(Integer id);

    ShareThing setCountAndFollow(ShareThing myTime);
//    R deleteShareThingById(Integer status, Integer id);
}
